

package com.hazelcast.map.listener;

import com.hazelcast.map.IMap;
import com.hazelcast.map.MapEvent;
import com.hazelcast.spi.annotation.NamespacesSupported;

/**
 * Invoked after all entries are evicted by {@link IMap#evictAll()}.
 *
 * @since 3.5
 */
@FunctionalInterface
@NamespacesSupported
public interface MapEvictedListener extends MapListener {

    /**
     * Invoked when all entries are evicted by {@link IMap#evictAll()}.
     *
     * @param event the map event invoked when all entries are evicted by {@link IMap#evictAll()}
     */
    void mapEvicted(MapEvent event);
}

